package com.eastfair.home.api;

import com.eastfair.core.base.R;
import com.eastfair.home.dto.BindHomeServiceProviderRoleDTO;
import com.eastfair.home.dto.RemoveHomeServiceProviderRoleDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author lyw
 * @Date 2022/8/10 9:58
 */
@FeignClient(value = "home/homeRegister")
public interface HomeRegisterFeign {

    /**
     * 主场服务商绑定角色.
     *
     * @param bindHomeServiceProviderRoleDTO
     * @return
     */
    @PostMapping("/bind/homeRole")
    R<Boolean> bindHomeServiceProviderRole(@RequestBody BindHomeServiceProviderRoleDTO bindHomeServiceProviderRoleDTO);


    /**
     * 主场服务商移除角色
     *
     * @param removeHomeServiceProviderRoleDTOList
     * @return
     */
    @PostMapping("/remove/homeRole")
    R<Boolean> removeHomeServiceProviderRole(@RequestBody List<RemoveHomeServiceProviderRoleDTO> removeHomeServiceProviderRoleDTOList);
}
